-- GENERATED SPELL FOR [Ashtongue Stalker] --


function spell0_23374(pUnit, Event) --@Blind,n/a--
pUnit:FullCastSpellOnTarget(34654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23374', 10270, 1)
end

function spell1_23374(pUnit, Event) --@Instant Poison,n/a--
pUnit:FullCastSpellOnTarget(41189,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23374', 634, 1)
end

function spell2_23374(pUnit, Event) --@Mind-numbing Poison,n/a--
pUnit:FullCastSpellOnTarget(41190,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23374', 12346, 1)
end

function spell3_23374(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(34189,pUnit)
pUnit:RegisterEvent('Sorts_23374', 546, 1)
end

function Sorts_23374(pUnit, Event)
local choix_sorts_23374 = math.random(0, 3)
if choix_sorts_23374 == 0 then
pUnit:RegisterEvent('spell0_23374', 1, 1)
end
if choix_sorts_23374 == 1 then
pUnit:RegisterEvent('spell1_23374', 1, 1)
end
if choix_sorts_23374 == 2 then
pUnit:RegisterEvent('spell2_23374', 1, 1)
end
if choix_sorts_23374 == 3 then
pUnit:RegisterEvent('spell3_23374', 1, 1)
end
end

function mob23374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23374', math.random(1500, 3000), 1)
end

function mob23374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23374, 1, 'mob23374_Action')
RegisterUnitEvent(23374, 2, 'mob23374_Leave')
RegisterUnitEvent(23374, 3, 'mob23374_Kill')
RegisterUnitEvent(23374, 4, 'mob23374_Die')
